Skip to content

Conversation

@helpau
Copy link
Contributor

@helpau helpau commented Sep 28, 2025

Performance tested on Apple M3(macOS 15) and on Ryzen 5 3400G(Windows 10).
Benchmark::operations may show degradation(because of low count of iterations?), Benchmark::programs() shows improvement, for example(reg eval time):

Apple M3

A002760:28.26->23.99
A000040:3.68->2.91
A000394:2.07->1.87

Ryzen 5 3400G

A002760:0.05->0.03
A000040:22.2->13.66
A000394:9.44->6.48

@helpau helpau requested a review from ckrause as a code owner September 28, 2025 07:40
@helpau helpau changed the title Add LTO support Build with LTO args Oct 6, 2025
@helpau
Copy link
Contributor Author

helpau commented Oct 7, 2025

@ckrause what do you think about this PR?

@ckrause
Copy link
Contributor

ckrause commented Oct 13, 2025

Many thanks for the PR. I didn't have a chance to test this yet. Hope I get to this soon.

Copy link
Contributor

@ckrause ckrause left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Improvement mostly for many-terms progs:

current:

$ ./loda profile A5 -t 100000
2.373s
$ ./loda profile A10 -t 20000
4.284s
$ ./loda profile A110 -t 300
8.960s

with lto:

$ ./loda profile A5 -t 100000
2.015s
$ ./loda profile A10 -t 20000
3.630s
$ ./loda profile A110 -t 300
8.779s

@ckrause ckrause merged commit a8507c4 into loda-lang:main Oct 17, 2025
6 checks passed
@helpau helpau deleted the add_lto_thin branch October 18, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants